#匿名函数
area = lambda a, h: (a * h) * 0.5
print(area(3, 4))

#递归函数
def factorial(num):
    if num == 1:
        return 1
    else:
        return  num * factorial(num - 1)
result = factorial(5)
print(f"5的阶乘为{result}")
    